package com.dbms;
/**
 * 该类主要用于添加或修改操作时对相应数据库字段进行赋值操作
 * 
 * @author yunxiangfu@163.com
 * 
 *
 */
public class DatabaseParameter {

	private String key;				//字段名
	private Object value;			//字段对应数据
	private int type;				//数据类型
	private boolean action=false;	//赋值方式是否已系统函数赋值，默认为false
	public boolean isAction() {
		return action;
	}
	public void setAction(boolean action) {
		this.action = action;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public Object getValue() {
		return value;
	}
	public void setValue(Object value) {
		this.value = value;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	/**
	 * 参数赋值
	 * @param key 字段名
	 * @param value 字段对应数据
	 */
	public DatabaseParameter(String key,Object value,int type){
		this.key=key;
		this.value=value;
		this.type=type;
	}
	/**
	 * 参数赋值
	 * @param key 字段名
	 * @param value 字段对应数据
	 * @param action 赋值方式是否已系统函数赋值，默认为false
	 */
	public DatabaseParameter(String key,Object value,int type,boolean action){
		this.key=key;
		this.value=value;
		this.action=action;
		this.type=type;
	}
}
